package com.chain.qs.modules.biz.entity;

import com.chain.qs.common.utils.excel.annotation.ExcelField;

import java.sql.Timestamp;

public class EquipmentItemRecordSensor extends EquipmentItemRecordSuper<EquipmentItemRecordSensor> {
    private static final long serialVersionUID = 1L;

    private String temperature;
    private String humidity;

    public EquipmentItemRecordSensor() {
    }

    public EquipmentItemRecordSensor(String sgroupId, String gitemId, String timeBegin, String timeEnd, String recordColumn) {
        this.sgroupId = sgroupId;
        this.gitemId = gitemId;
        this.timeBegin = timeBegin;
        this.timeEnd = timeEnd;
        this.recordColumn = recordColumn;
    }

    public EquipmentItemRecordSensor(String sgroupId, String gitemId) {
        this.sgroupId = sgroupId;
        this.gitemId = gitemId;
    }

    @ExcelField(title = "时间戳", align = 2, sort = 10)
    public Timestamp getTimeStamp() {
        return timeStamp;
    }

    @ExcelField(title = "湿度[%RH]", align = 2, sort = 50)
    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    @ExcelField(title = "温度[℃]", align = 2, sort = 40)
    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }
}
